C1.WPF Namespace > Extensions Class > MakeRelative Method : MakeRelative(Popup,FrameworkElement,Func<List<AnchorMatching>>,Func<Point>,Func<Point>) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Sub MakeRelative( _ ByVal popup As Popup, _ ByVal relativeElement As FrameworkElement, _ ByVal getLocations As Func(Of List(Of AnchorMatching)), _ ByVal getPosition As Func(Of Point), _ ByVal getReferencePosition As Func(Of Point) _ )
'Usage
Dim popup As Popup Dim relativeElement As FrameworkElement Dim getLocations As Func(Of List(Of AnchorMatching)) Dim getPosition As Func(Of Point) Dim getReferencePosition As Func(Of Point) Extensions.MakeRelative(popup, relativeElement, getLocations, getPosition, getReferencePosition)
[Extension()] public static void MakeRelative( Popup popup, FrameworkElement relativeElement, Func<List<AnchorMatching>> getLocations, Func<Point> getPosition, Func<Point> getReferencePosition )
[Extension()] public: static void MakeRelative( Popup^ popup, FrameworkElement^ relativeElement, Func<List<AnchorMatching>^>^ getLocations, Func<Point>^ getPosition, Func<Point>^ getReferencePosition )
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2